package com.cookbook.cookbookservice.common.enums;

import lombok.Getter;

/**
 * @program: mid-tourism-service
 * @ClassName ScenicEnum
 * @description:
 * @author: MiaoChao
 * @create: 2024-03-29 14:22
 * @Version 1.0
 **/

public interface RegionEnum {

    @Getter
    enum level {
        province("province", "省"),
        city("city", "市"),
        district("district", "区");
        private String code;

        private String name;

        level(String district, String name) {
            this.code = district;
            this.name = name;
        }
    }
}